package org.davidliebman.android.flyer;

import java.util.ArrayList;

public class ChallengeList {
	ArrayList<Challenge> mList = new ArrayList<Challenge>();
	int mIndex = 0;
	
	public ChallengeList() {
		mList = new ArrayList<Challenge>();
	}
	public void addChallenge(Challenge mC) {
		mList.add(mC);
	}
	public boolean isFinished() {
		boolean mValue = false;
		if (mIndex >= mList.size()) mValue = true;
		return mValue;
	}
	public void resetIndex() {
		mIndex = 0;
	}
	public Challenge readNext() {
		Challenge temp = mList.get(mIndex);
		mIndex ++;
		return temp;
		
	}
	
}

class Challenge {
	int rings, bubble1, bubble2, bubble3;
	int invader1, invader2, invader3;
	int speed;
	
	public Challenge() {
		this.rings = 0;
		this.bubble1 = 0;
		this.bubble2 = 0;
		this.bubble3 = 0;
		this.invader1 = 0;
		this.invader2 = 0;
		this.invader3 = 0;
		this.speed = 0;
	}
	
	public Challenge(int rings, int bubble1, int bubble2, int bubble3, int invader1, int invader2, int invader3, int speed) {
		this.rings = rings;
		this.bubble1 = bubble1;
		this.bubble2 = bubble2;
		this.bubble3 = bubble3;
		this.invader1 = invader1;
		this.invader2 = invader2;
		this.invader3 = invader3;
		this.speed = speed;
	}
	public int getRings() {
		return rings;
	}
	public void setRings(int rings) {
		this.rings = rings;
	}
	public int getBubble1() {
		return bubble1;
	}
	public void setBubble1(int bubble1) {
		this.bubble1 = bubble1;
	}
	public int getBubble2() {
		return bubble2;
	}
	public void setBubble2(int bubble2) {
		this.bubble2 = bubble2;
	}
	public int getBubble3() {
		return bubble3;
	}
	public void setBubble3(int bubble3) {
		this.bubble3 = bubble3;
	}
	public int getInvader1() {
		return invader1;
	}
	public void setInvader1(int invader1) {
		this.invader1 = invader1;
	}
	public int getInvader2() {
		return invader2;
	}
	public void setInvader2(int invader2) {
		this.invader2 = invader2;
	}
	public int getInvader3() {
		return invader3;
	}
	public void setInvader3(int invader3) {
		this.invader3 = invader3;
	}
	public int getSpeed() {
		return speed;
	}
	public void setSpeed(int speed) {
		this.speed = speed;
	}
	
	
}